#include<stdio.h>

int multiply(int A, int B) {
    if (B == 0)
        return 0;

    return A + multiply(A, B - 1);
}

int main()
{
    int a = 3, b = 5;
    printf("%d", multiply(a, b));
    return 0;
}